# logger_config.py
from loguru import logger
import os

# 配置日志
logger.add(
    './logs/runtime_{time:YYYY-MM-DD}.log',
    rotation='1 day',
    retention='7 days',
    compression='zip',
    level='DEBUG'
)